<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Fast Pulsar </title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/AdminLTE/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/AdminLTE/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/AdminLTE/dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="/AdminLTE/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="/AdminLTE/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="/AdminLTE/plugins/datepicker/datepicker3.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="/AdminLTE/plugins/daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <link rel="stylesheet" type="text/css" href="/jquery-easyui-1.5/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/jquery-easyui-1.5/themes/icon.css">
    <link rel="stylesheet" href="/jquery-easyui-1.5/themes/bootstrap/datagrid.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>

    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">
        <!-- Logo -->
        <a href="#" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>Fast</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>Fast</b>Pulsar</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- Messages: style can be found in dropdown.less-->
                    <%--<li class="dropdown messages-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="label label-success">4</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">You have 4 messages</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <li><!-- start message -->
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle"
                                                     alt="User Image">
                                            </div>
                                            <h4>
                                                Support Team
                                                <small><i class="fa fa-clock-o"></i> 5 mins</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                    <!-- end message -->
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/AdminLTE/dist/img/user3-128x128.jpg" class="img-circle"
                                                     alt="User Image">
                                            </div>
                                            <h4>
                                                AdminLTE Design Team
                                                <small><i class="fa fa-clock-o"></i> 2 hours</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/AdminLTE/dist/img/user4-128x128.jpg" class="img-circle"
                                                     alt="User Image">
                                            </div>
                                            <h4>
                                                Developers
                                                <small><i class="fa fa-clock-o"></i> Today</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/AdminLTE/dist/img/user3-128x128.jpg" class="img-circle"
                                                     alt="User Image">
                                            </div>
                                            <h4>
                                                Sales Department
                                                <small><i class="fa fa-clock-o"></i> Yesterday</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <div class="pull-left">
                                                <img src="/AdminLTE/dist/img/user4-128x128.jpg" class="img-circle"
                                                     alt="User Image">
                                            </div>
                                            <h4>
                                                Reviewers
                                                <small><i class="fa fa-clock-o"></i> 2 days</small>
                                            </h4>
                                            <p>Why not buy a new awesome theme?</p>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li class="footer"><a href="#">See All Messages</a></li>
                        </ul>
                    </li>
                    <!-- Notifications: style can be found in dropdown.less -->
                    <li class="dropdown notifications-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-bell-o"></i>
                            <span class="label label-warning">10</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">You have 10 notifications</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-users text-aqua"></i> 5 new members joined today
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-warning text-yellow"></i> Very long description here that
                                            may not fit into the
                                            page and may cause design problems
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-users text-red"></i> 5 new members joined
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-shopping-cart text-green"></i> 25 sales made
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-user text-red"></i> You changed your username
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li class="footer"><a href="#">View all</a></li>
                        </ul>
                    </li>
                    <!-- Tasks: style can be found in dropdown.less -->
                    <li class="dropdown tasks-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-flag-o"></i>
                            <span class="label label-danger">9</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="header">You have 9 tasks</li>
                            <li>
                                <!-- inner menu: contains the actual data -->
                                <ul class="menu">
                                    <li><!-- Task item -->
                                        <a href="#">
                                            <h3>
                                                Design some buttons
                                                <small class="pull-right">20%</small>
                                            </h3>
                                            <div class="progress xs">
                                                <div class="progress-bar progress-bar-aqua" style="width: 20%"
                                                     role="progressbar" aria-valuenow="20" aria-valuemin="0"
                                                     aria-valuemax="100">
                                                    <span class="sr-only">20% Complete</span>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <!-- end task item -->
                                    <li><!-- Task item -->
                                        <a href="#">
                                            <h3>
                                                Create a nice theme
                                                <small class="pull-right">40%</small>
                                            </h3>
                                            <div class="progress xs">
                                                <div class="progress-bar progress-bar-green" style="width: 40%"
                                                     role="progressbar" aria-valuenow="20" aria-valuemin="0"
                                                     aria-valuemax="100">
                                                    <span class="sr-only">40% Complete</span>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <!-- end task item -->
                                    <li><!-- Task item -->
                                        <a href="#">
                                            <h3>
                                                Some task I need to do
                                                <small class="pull-right">60%</small>
                                            </h3>
                                            <div class="progress xs">
                                                <div class="progress-bar progress-bar-red" style="width: 60%"
                                                     role="progressbar" aria-valuenow="20" aria-valuemin="0"
                                                     aria-valuemax="100">
                                                    <span class="sr-only">60% Complete</span>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <!-- end task item -->
                                    <li><!-- Task item -->
                                        <a href="#">
                                            <h3>
                                                Make beautiful transitions
                                                <small class="pull-right">80%</small>
                                            </h3>
                                            <div class="progress xs">
                                                <div class="progress-bar progress-bar-yellow" style="width: 80%"
                                                     role="progressbar" aria-valuenow="20" aria-valuemin="0"
                                                     aria-valuemax="100">
                                                    <span class="sr-only">80% Complete</span>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <!-- end task item -->
                                </ul>
                            </li>
                            <li class="footer">
                                <a href="#">View all tasks</a>
                            </li>
                        </ul>
                    </li>
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/AdminLTE/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">Alexander Pierce</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                <p>
                                    Alexander Pierce - Web Developer
                                    <small>Member since Nov. 2012</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <li class="user-body">
                                <div class="row">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Followers</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Sales</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Friends</a>
                                    </div>
                                </div>
                                <!-- /.row -->
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat">Profile</a>
                                </div>
                                <div class="pull-right">
                                    <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                </div>
                            </li>
                        </ul>
                    </li>--%>
                    <!-- Control Sidebar Toggle Button -->
                    <li>
                        <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <%--<div class="user-panel">
              <div class="pull-left image">
                <img src="/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
              </div>
              <div class="pull-left info">
                <p>Alexander Pierce</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
              </div>
            </div>--%>
            <!-- search form -->
            <!-- <form action="#" method="get" class="sidebar-form">
               <div class="input-group">
                 <input type="text" name="q" class="form-control" placeholder="Search...">
                     <span class="input-group-btn">
                       <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                       </button>
                     </span>
               </div>
             </form>-->
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="header">Fast_Acc_Console</li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-dashboard"></i> <span>Task Management</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href=/apptask><i class="fa fa-circle-o"></i> Apply New Task</a></li>
                        <li><a href="/newtaskPara"><i class="fa fa-circle-o"></i>Edit Task Parameter</a></li>
                        <li><a href="/startTask"><i class="fa fa-circle-o"></i>Start Task</a></li>

                        <li><a href=""><i class="fa fa-circle-o"></i> Check Task State</a></li>
                        <li><a href=""><i class="fa fa-circle-o"></i> Task Reassignment</a></li>

                    </ul>
                </li>
                <li>
                    <a href="/showpic">
                        <i class="fa fa-th"></i> <span>Fits Info</span>
                        <span class="pull-right-container">
              <!--<small class="label pull-right bg-green">new</small>-->
            </span>
                    </a>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-files-o"></i>
                        <span>Result Monitor</span>
                        <span class="pull-right-container">
              <!--<span class="label label-primary pull-right">4</span>-->
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="#"><i class="fa fa-circle-o"></i> Rfi Result</a>
                        </li>
                        <li><a href="#"><i class="fa fa-circle-o"></i> CAND Result</a>
                        </li>
                        <li><a href="#"><i class="fa fa-circle-o"></i> ACCEL Result</a>
                        </li>
                        <li><a href="/compare"><i class="fa fa-circle-o"></i> P&C-compare</a>
                        </li>
                        <li><a href="/compresult"><i class="fa fa-circle-o"></i> P&C-result</a>
                        </li>
                        <!--<li><a href="/AdminLTE/pages/layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Fits Info </a></li>-->
                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-pie-chart"></i>
                        <span>Pic Mointor</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li class="active active"><a href="#"><i class="fa fa-circle-o"></i> Candidate Query</a>
                        </li>
                        <li><a href="#"><i class="fa fa-circle-o"></i> A</a></li>
                        <li><a href="#"><i class="fa fa-circle-o"></i> B</a></li>
                        <li><a href="#"><i class="fa fa-circle-o"></i> C
                            charts</a></li>
                    </ul>
                </li>

            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->

        <section class="content">
            <div class="row clearfix">

                <button id="btnOne" class="btn" type="button">+</button>

                <button id="btntwo" class="btn" type="button">-</button>
            </div>
            <div class="row clearfix" id = "tab1">
                <div class="col-md-1  column"></div>
                <div class="col-md-5  column">
                    <table style=" align:center;valign:middle" summary="This table contains a set of checkboxes representing each pulsar parameter that you wish to display when querying the catalogue. If you wish to view a particular pulsar parameter, click on the checkbox to the left of the parameter name">
                        <!-- Enter generated code here -->
                        <tbody>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr >
                                        <td style="text-align:center; border:1px solid #aaa;"width="10" bgcolor="#FFCC01" >
                                            <input name="FileName" type="checkbox" id="FileName" value="FileName">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">FileName </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    File:
                                </span>
                                        </td>
                                        <td>
                                            <input name="NameC" type="text" id="NameC" value="">
                                        </td>
                                        <td width="40">

                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="taskId" type="checkbox" id="taskId" value="taskId">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">taskId </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    Task:
                                </span>
                                        </td>
                                        <td>
                                            <input name="taskIdC" type="text" id="taskIdC" value="">
                                        </td>
                                        <td width="40">

                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="DM" type="checkbox" id="DM" value=DM">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">DM (pc/cm^3)</a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="DMC1" type="text" id="DMC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="DMC2" type="text" id="DMC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="Ptopo" type="checkbox" id="Ptopo" value="Ptopo">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">Ptopo(ms) </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="PtopoC1" type="text" id="PtopoC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="PtopoC2" type="text" id="PtopoC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="Pbary" type="checkbox" id="Pbary" value="Pbary">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">Pbary(ms) </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="PbaryC1" type="text" id="PbaryC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="PbaryC2" type="text" id="PbaryC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="Score" type="checkbox" id="Score" value="Name">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">Score </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="ScoreC1" type="text" id="ScoreC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="ScoreC2" type="text" id="ScoreC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>


                        </tbody>
                    </table>
                </div>

                <div class="col-md-4  column">
                    <table style=" border:none;align:center;valign:middle" summary="This table contains a set of checkboxes representing each pulsar parameter that you wish to display when querying the catalogue. If you wish to view a particular pulsar parameter, click on the checkbox to the left of the parameter name">
                        <!-- Enter generated code here -->
                        <tbody>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Mark" type="checkbox" id="pic1Mark" value="Name">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1Mark </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1MarkC1" type="text" id="pic1MarkC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1MarkC2" type="text" id="pic1MarkC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Peak" type="checkbox" id="pic1Peak" value="picDm">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1Peak </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1PeakC1" type="text" id="pic1PeakC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1PeakC2" type="text" id="pic1PeakC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Error" type="checkbox" id="pic1Error" value="pTopo">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1Error </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1ErrorC1" type="text" id="pic1ErrorC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="Name" pic1ErrorC2="text" id="pic1ErrorC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Width10" type="checkbox" id="pic1Width10" value="Name">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1PW10 </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1Width10C1" type="text" id="pic1Width10C1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1Width10C2" type="text" id="pic1Width10C2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Width50" type="checkbox" id="pic1Width50" value="pic1Width50">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1PW50 </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1Width50C1" type="text" id="pic1Width50C1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1Width50C2" type="text" id="pic1Width50C2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic1Peaknum" type="checkbox" id="pic1Peaknum" value="pic1Peaknum">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic1Peaknum </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1PeaknumC1" type="text" id="pic1PeaknumC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic1PeaknumC2" type="text" id="pic1PeaknumC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>


                        </tbody>
                    </table>
                </div>
            </div>


            <div class="row clearfix" id = "tab2">
                <br>
                <div class="col-md-1  column"></div>
                <div class="col-md-5  column">
                    <table style=" align:center;valign:middle" summary="This table contains a set of checkboxes representing each pulsar parameter that you wish to display when querying the catalogue. If you wish to view a particular pulsar parameter, click on the checkbox to the left of the parameter name">
                        <!-- Enter generated code here -->
                        <tbody>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr >
                                        <td style="text-align:center; border:1px solid #aaa;"width="10" bgcolor="#FFCC01" >
                                            <input name="pic2X" type="checkbox" id="pic2X" value="pic2X">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2X </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2XC1" type="text" id="pic2XC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2XC2" type="text" id="pic2XC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Y" type="checkbox" id="pic2Y" value="picDm">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Y </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2YC1" type="text" id="pic2YC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2YC2" type="text" id="pic2YC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Percent" type="checkbox" id="pic2Percent" value="pic2Percent">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Percent </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2PercentC1" type="text" id="pic2PercentC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2PercentC2" type="text" id="pic2PercentC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Ave" type="checkbox" id="pic2Ave" value="pic2Ave">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Ave </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2AveC1" type="text" id="pic2AveC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2AveC2" type="text" id="pic2AveC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Avearea" type="checkbox" id="pic2Avearea" value="pic2Avearea">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Avearea </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2AveareaC1" type="text" id="pic2AveareaC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2AveareaC2" type="text" id="pic2AveareaC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Linenum" type="checkbox" id="pic2Linenum" value="pic2Linenum">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Linenum </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2LinenumC1" type="text" id="pic2LinenumC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2LinenumC2" type="text" id="pic2LinenumC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Theta" type="checkbox" id="pic2Theta" value="pic2Theta">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Theta </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2ThetaC1" type="text" id="pic2ThetaC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2ThetaC1" type="text" id="pic2ThetaC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic2Rho" type="checkbox" id="pic2Rho" value="pic2Rho">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic2Rho </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2RhoC1" type="text" id="pic2RhoC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic2RhoC2" type="text" id="pic2RhoC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>

                <div class="col-md-4  column">
                    <table style=" border:none;align:center;valign:middle" summary="This table contains a set of checkboxes representing each pulsar parameter that you wish to display when querying the catalogue. If you wish to view a particular pulsar parameter, click on the checkbox to the left of the parameter name">
                        <!-- Enter generated code here -->
                        <tbody>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3X" type="checkbox" id="pic3X" value="pic3X">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3X </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3XC1" type="text" id="pic3XC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3XC2" type="text" id="pic3XC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Y" type="checkbox" id="pic3Y" value="pic3Y">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Y </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3YC1" type="text" id="pic3YC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3YC2" type="text" id="pic3YC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Percent" type="checkbox" id="pic3Percent" value="pic3Percent">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Percent </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3PercentC1" type="text" id="pic3PercentC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3PercentC2" type="text" id="pic3PercentC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Ave" type="checkbox" id="pic3Ave" value="pic3Ave">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Ave </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3AveC1" type="text" id="pic3AveC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3AveC2" type="text" id="pic3AveC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Avearea" type="checkbox" id="pic3Avearea" value="pic3Avearea">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Avearea </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3AveareaC1" type="text" id="pic3AveareaC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3AveareaC2" type="text" id="pic3AveareaC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Linenum" type="checkbox" id="pic3Linenum" value="pic3Linenum">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Linenum </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3LinenumC1" type="text" id="pic3LinenumC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3LinenumC2" type="text" id="pic3LinenumC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Theta" type="checkbox" id="pic3Theta" value="pic3Theta">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Theta </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3ThetaC1" type="text" id="pic3ThetaC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3ThetaC2" type="text" id="pic3ThetaC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00">
                                            <input name="pic3Rho" type="checkbox" id="pic3Rho" value="pic3Rho">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF">
                                            <div align="center"><a href="#">pic3Rho </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3RhoC1" type="text" id="pic3RhoC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic3RhoC2" type="text" id="pic3RhoC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="row clearfix" id = "tab3">
                <br>
                <div class="col-md-1  column"></div>
                <div class="col-md-5  column">
                    <table style=" align:center;valign:middle" summary="This table contains a set of checkboxes representing each pulsar parameter that you wish to display when querying the catalogue. If you wish to view a particular pulsar parameter, click on the checkbox to the left of the parameter name">
                        <!-- Enter generated code here -->
                        <tbody>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr >
                                        <td style="text-align:center; border:1px solid #aaa;"width="10" bgcolor="#FFCC01" >
                                            <input name="pic4Haslorentz" type="checkbox" id="pic4Haslorentz" value="pic4Haslorentz">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic4Haslorentz </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4HaslorentzC1" type="text" id="pic4HaslorentzC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4HaslorentzC1" type="text" id="pic4HaslorentzC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic4Peaknum" type="checkbox" id="pic4Peaknum" value="pic4Peaknum">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic4Peaknum </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4PeaknumC1" type="text" id="pic4PeaknumC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4PeaknumC2" type="text" id="pic4PeaknumC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic4Lorentzx" type="checkbox" id="pic4Lorentzx" value="pic4Lorentzx">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic4Lorentzx </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4LorentzxC1" type="text" id="pic4LorentzxC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4LorentzxC2" type="text" id="pic4LorentzxC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="pic4Lorentzeheight" type="checkbox" id="pic4Lorentzeheight" value="pic4Lorentzeheight">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">pic4Lorentzeheight </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4LorentzeheightC1" type="text" id="pic4LorentzeheightC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="pic4LorentzeheightC2" type="text" id="pic4LorentzeheightC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="vatdm0" type="checkbox" id="vatdm0" value="vatdm0">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">vatdm0 </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                     From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="vatdm0C1" type="text" id="vatdm0C1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="vatdm0C2" type="text" id="vatdm0C2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="maxv" type="checkbox" id="maxv" value="maxv">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">maxv </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="maxvC1" type="text" id="maxvC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="maxvC2" type="text" id="maxvC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style=" border:none;">
                                    <tbody>
                                    <tr>
                                        <td width="10" bgcolor="#FFCC00" style="text-align:center; border:1px solid #aaa;">
                                            <input name="maxvatdm" type="checkbox" id="maxvatdm" value="maxvatdm">
                                        </td>
                                        <td width="150" bgcolor="#FFFFFF" style="text-align:center; border:1px solid #aaa;">
                                            <div align="center"><a href="#">maxvatdm </a></div>
                                        </td>
                                        <td width="40">
                                <span>
                                    From:
                                </span>
                                        </td>
                                        <td>
                                            <input name="maxvatdmC1" type="text" id="maxvatdmC1" value="">
                                        </td>
                                        <td width="30">
                                <span>
                                    To:
                                </span>
                                        </td>
                                        <td>
                                            <input name="maxvatdmC2" type="text" id="maxvatdmC2" value="">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>

                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>

                <div class="col-md-4  column">
                </div>
            </div>

            <div class="row clearfix" id="btngroup">
                <div class="col-md-5  column"></div>
                <div class="col-md-6  column">
                    <br>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default" onclick="makeSQL()">MAKE SQL</button>
                        <button type="button" class="btn btn-default">Clear</button>
                    </div></div>

            </div>
            <!-- Main content -->

            <div class="row clearfix">
                <br>
                <div class="col-md-1  column"></div>
                <div class="col-md-10  column">

                    <textarea class="form-control" rows="5" id="queryCommandInput" placeholder="Query Command"></textarea>
                </div>
            </div>
            <div class="row clearfix">
                <div class="col-md-5  column"></div>
                <div class="col-md-6  column">
                    <div class="btn-group">
                        <button type="button" class="btn btn-default" onclick="queryPic_info()">Query</button>
                        <button type="button" class="btn btn-default">Clear</button>
                    </div></div>
            </div>






            <div class="row clearfix"> </div>
            <div class="col-md-7 column">
                <img class="img-responsive center-block" id="pulsarpic">
            </div>


            <div class="col">

                <div id="datagirdrow">
                    <table id="datagird" class="easyui-datagrid" toolbar="#tb"></table>
                </div>
                <div id="tb">
                    <button type="button" class="btn btn-default" onclick="lodePrePage()">
                        <span class="glyphicon glyphicon-chevron-left"></span></button>
                    <button type="button" class="btn btn-default" onclick="lodeNextPage()">
                        <span class="glyphicon glyphicon-chevron-right"></span></button>
                    <input id="gotopages" name="gotopages" style="width: 10px">
                    <button type="button" class="btn btn-default" onclick="gotoPages()">
                        <span class="glyphicon glyphicon glyphicon-forward"></span></button>
                    <button type="button" class="btn btn-default" onclick="refreshPage()">
                        <span class="glyphicon glyphicon glyphicon-refresh"></span></button>
                    <span id ="pagenum"></span>
                    <span id ="partnum"></span> <span id = "totalnum"></span>

                    <button type="button" class="btn btn-default" onclick="addEvent()">
                        <span class="glyphicon glyphicon-plus"></span></button>

                    <button type="button" class="btn btn-default" onclick="matchPuslar()">
                        <span class="glyphicon glyphicon-screenshot"></span></button>


                </div>
            </div>


        </section>
    </div>

    <!-- add new event -->
    <div id="newevent" class="easyui-window" title="Modal Window" data-options="modal:true,closed:true,iconCls:'icon-save'" style="width:900px;height:600px;padding:10px;">
        <table>
            <tr>
                <td>ra2000  rank:</td>
                <td><input id="ra2000Rank" name="ra2000Rank" value=10 ></td>
                <td>dec2000 rank:</td>
                <td><input id="dec2000Rank" name="dec2000Rank" value=10></td>
            </tr>
            <tr>
                <td>dm rank:</td>
                <td><input id="dmRank" name="dmRank" value=10></td>
                <td>p0 rank:</td>
                <td><input id="pRank" name="pRank" value=10></tr>
            <tr>
                <td>h rank:</td>
                <td><input id="hRank" name="hRank" value=10></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button type="button" class="btn btn-default" onclick="requireEvent()">
                        <span class="glyphicon glyphicon-ok"></span></button>
                </td>
                <td>
                    <button type="button" class="btn btn-default" onclick="$('#newevent').window('close');">
                        <span class="glyphicon glyphicon-remove"></span></button>

                </td>
                <td></td>
            </tr>
        </table>
        <table id="dg" title="My Users" class="easyui-datagrid" style="width:800px;height:450px"
               toolbar="#toolbar" pagination="true" pageList="[9]" pageSize=9
               fitColumns="true" singleSelect="true">
            <thead>
            <tr>
                <th field="order" width="50px">ORDER</th>
                <th field="puslarName" width="50px">PUSLARNAME</th>
                <th field="ptopo" width="50px">PO</th>
                <th field="dm" width="50px">DM</th>
                <th field="ra2000" width="50px">RA</th>
                <th field="dec2000" width="50px">DEC</th>
                <th field="p0_d" width="50px">PO_D</th>
                <th field="dm_d" width="50px">DM_D</th>
                <th field="ra_dec_d" width="50px">RA_DEC_D</th>
                <th field="h0" width="50px">H_TIMES</th>
                <th field="OPT" width="50px">OPT</th>

            </tr>
            </thead>
        </table>



    </div>

    <!-- /.content -->


    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.3.5
        </div>
        <strong>Copyright &copy; 2016-2017 <a href="#">GZNU-NAOC</a>.</strong> All rights
        reserved.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">Recent Activity</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-birthday-cake bg-red"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                                <p>Will be 23 on April 24th</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-user bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>

                                <p>New phone +1(800)555-1234</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>

                                <p>nora@example.com</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-file-code-o bg-green"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>

                                <p>Execution time 5 seconds</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

                <h3 class="control-sidebar-heading">Tasks Progress</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Custom Template Design
                                <span class="label label-danger pull-right">70%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Update Resume
                                <span class="label label-success pull-right">95%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-success" style="width: 95%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Laravel Integration
                                <span class="label label-warning pull-right">50%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Back End Framework
                                <span class="label label-primary pull-right">68%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-settings-tab">
                <form method="post">
                    <h3 class="control-sidebar-heading">General Settings</h3>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Report panel usage
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Some information about this general settings option
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Allow mail redirect
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Other sets of options are available
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Expose author name in posts
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Allow the user to show his name in blog posts
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <h3 class="control-sidebar-heading">Chat Settings</h3>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Show me as online
                            <input type="checkbox" class="pull-right" checked>
                        </label>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Turn off notifications
                            <input type="checkbox" class="pull-right">
                        </label>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Delete chat history
                            <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
                        </label>
                    </div>
                    <!-- /.form-group -->
                </form>
            </div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- jQuery UI 1.11.4 -->

<script src="/AdminLTE/plugins/jQueryUI/jquery-ui.min.js"></script>


<script type="text/javascript" src="/jquery-easyui-1.5/jquery.easyui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.6 -->
<script src="/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<%--<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>--%>
<script src="/AdminLTE/plugins/morris/morris.min.js"></script>
<!-- Sparkline -->
<script src="/AdminLTE/plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="/AdminLTE/plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->

<%--
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
--%>
<%--</script>--%>
<%--
<script type="text/javascript" src="/AdminLTE/datagird/datagird/jquery-ui-timepicker-addon.min.js"></script>

<script src="/AdminLTE/plugins/daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="/AdminLTE/plugins/datepicker/bootstrap-datepicker.js"></script>
--%>
<!-- Bootstrap WYSIHTML5 -->
<script src="/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/AdminLTE/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="/AdminLTE/dist/js/app.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->

<!-- AdminLTE for demo purposes -->
<script src="/AdminLTE/dist/js/demo.js"></script>
<script src="/js/showpic.js"></script>
<%--<script type="text/javascript" src="/AdminLTE/moment.min.js"></script>--%>
<%--
link rel="stylesheet" type="text/css" href="/path/to/jquery-ui-timepicker-addon.min.css"/>
--%>
<!--  if touch event support is needed (mobile devices) -->
<%--<script type="text/javascript" src="/path/to/jquery.ui.touch-punch.min.js"></script>
  --%>
<%--<script src="/AdminLTE/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="/AdminLTE/dist/js/pages/dashboard.js"></script>--%>
<!--  PAGINATION plugin -->

<%--
<link rel="stylesheet" type="text/css" href="/AdminLTE/datagird/datagird-page/jquery.bs_pagination.min.css">
<script type="text/javascript" src="/AdminLTE/datagird/datagird-page/jquery.bs_pagination.min.js"></script>
<script type="text/javascript" src="/AdminLTE/datagird/datagird-page/localization/en.min.js"></script>
 
<!--  FILTERS plugin --> 
<link rel="stylesheet" type="text/css" href="/AdminLTE/datagird/datagird-filter/jquery.jui_filter_rules.bs.css">
<script type="text/javascript" src="/AdminLTE/datagird/datagird-filter/jquery.jui_filter_rules.js"></script>
<script type="text/javascript" src="/AdminLTE/datagird/datagird-filter/localization/en.js"></script>
<!--  required from filters plugin -->

 
<!--  DATAGRID plugin -->
<link rel="stylesheet" type="text/css" href="/AdminLTE/datagird/datagird/jquery.bs_grid.min.css">
<script type="text/javascript" src="/AdminLTE/datagird/datagird/jquery.bs_grid.js"></script>
<script type="text/javascript" src="/AdminLTE/datagird/datagird/localization/en.js"></script>
--%>
<script type="text/javascript" src="http://pv.sohu.com/cityjson?ie=utf8"></script>
<script type="application/javascript">
    $("#datagirdrow").hide();
    var part=0;
    var existNextPage=0;
    var total=0;
    var partIndex=0;

    /**
      * Convert local timezone date string to UTC timestamp
      *
      * Alternative syntax using jquery (instead of moment.js):
      *     var date = $.datepicker.parseDateTime(dateformat, timeformat, date_str);
      *
      * @see http://stackoverflow.com/questions/948532/how-do-you-convert-a-javascript-date-to-utc
      * @param {String} date_str
      * @param {String} dateformat
      * @return {String}
      */
    function local_datetime_to_UTC_timestamp(date_str, dateformat) {

        // avoid date overflow in user input (moment("14/14/2005", "DD/MM/YYYY") => Tue Feb 14 2006)
        if (moment(date_str, dateformat).isValid() == false) {
            throw new Error("Invalid date");
        }

        // parse date string using given dateformat and create a javascript date object
        var date = moment(date_str, dateformat).toDate();

        // use javascript getUTC* functions to conv ert to UTC
        return date.getUTCFullYear() +
                PadDigits(date.getUTCMonth() + 1, 2) +
                PadDigits(date.getUTCDate(), 2) +
                PadDigits(date.getUTCHours(), 2) +
                PadDigits(date.getUTCMinutes(), 2) +
                PadDigits(date.getUTCSeconds(), 2);

    }

    /**
      * Add leading zeros
      * @param {Number} n
      * @param {Number} totalDigits
      * @return {String}
      */
    function PadDigits(n, totalDigits) {
        n = n.toString();
        var pd = '';
        if (totalDigits > n.length) {
            for (i = 0; i < (totalDigits - n.length); i++) {
                pd += '0';
            }
        }
        return pd + n.toString();
    }
    var ftpsvr="http://172.24.9.201:8099/fast/output"

    function checkSqlInject(sql) {
        return true;
    }
    function checkColumns(sql) {

        // var sql="select id,pic,ooo from pic where 111=aaa and 111 in select.....";
        var columns = [];
        if (checkSqlInject(sql)) {
            var sqlre = sql;
            var sqlre_temp = null;
            do {
                sqlre_temp = sqlre;
                sqlre = sqlre.replace("select", "");
            }
            while (sqlre_temp != sqlre)
            do {
                sqlre_temp = sqlre;
                sqlre = sqlre.replace(" ", "").replace(" ", "");
            }
            while (sqlre_temp != sqlre)
            sql = sqlre;

            var temp = [];
            temp = sql.split("from");
            if (temp[0].indexOf(",") == -1) {
                columns[0] = temp[0];
                return columns;
            }
            else {

                columns = temp[0].split(",");

                for (i = 0; i < columns.length; i++) {
                    if (columns[i].indexOf(".") != -1) {
                        var tempdot = [];
                        tempdot = columns[i].split(".");
                        columns[i] = tempdot[tempdot.length - 1];


                    }
                }


                return columns;
            }
        }
        else {
            columns[0] = "illegal";
            return columns;
        }
    }
    $.extend($.fn.datagrid.methods, {
        keyCtr : function (jq) {
            return jq.each(function () {
                var grid = $(this);
                grid.datagrid('getPanel').panel('panel').attr('tabindex', 1).bind('keydown', function (e) {
                    switch (e.keyCode) {
                        case 38: // up
                            var selected = grid.datagrid('getSelected');
                            if (selected) {
                                var index = grid.datagrid('getRowIndex', selected);
                                grid.datagrid('selectRow', index - 1);

                            } else {
                                var rows = grid.datagrid('getRows');
                                grid.datagrid('selectRow', rows.length - 1);
                            }
                            dataGirdClickListener(grid.datagrid('getRowIndex', selected),grid.datagrid('getSelected'))
                            break;
                        case 40: // down
                            var selected = grid.datagrid('getSelected');
                            if (selected) {
                                var index = grid.datagrid('getRowIndex', selected);
                                grid.datagrid('selectRow', index + 1);
                            } else {
                                grid.datagrid('selectRow', 0);
                            }
                            dataGirdClickListener(grid.datagrid('getRowIndex', selected),grid.datagrid('getSelected'))

                            break;
                    }
                });
            });
        }
    });
    function dataGirdClickListener(rowIndex, row) {
        //var rows = $(this).datagrid('getRows');
        //var row = rows[rowIndex];
        //var id = row.id;
        if(returnCitySN["cip"].slice(0,10)=="202.101.92"){

            value = ftpsvr + row.picname.slice(7);

        }
        else{
            value = ftpsvr + row.picname.slice(7);}
        $("#pulsarpic").attr("src", value);
    }
    function queryPic_info() {
        partIndex=0;
        existNextPage=0;
        total=0;
        partIndex=0;

        $.messager.progress({
            title:'please wait',
            msg:'loding...'
        })
        $("#datagirdrow").show();
        var sql = $('#queryCommandInput').val();
       // if(sql.indexOf("select")!=-1&&sql.indexOf("from")!=-1){
       // sql="select picname,task_id,"+sql.slice(sql.indexOf("select")+6);

       // }
        var colums = [];
        var columnsJson = [];
        //   colums = checkColumns(sql);
        if (colums[0] != "illegal") {

            /* */
            // eval(JSON.stringify(columnsJson));

            /*("#demo_grid1").bs_grid({

             });*/

            var sqlJson = [];
            sqlJson.push({"tag": "sql", "sql": sql,"queryIndex":0});
            // sqlJson.push({"sql":sql});
            var sqlSend = JSON.stringify(sqlJson);
            $.ajax({
                type: "post",
                contentType: "application/json",
                url: "/picSqlQuery",
                data: sqlSend,
                dataType: "json",
                success: function onSucc(data) {
                    $.messager.progress('close');
                    deleteEmptyProperty(data);
                   var partMessage=data.pop();
                   part= partMessage.part;
                   existNextPage= partMessage.existNextPart;
                    total=partMessage.size;

                    document.getElementById('pagenum').innerHTML="第"+(Number(partIndex)+1)+"页";
                    document.getElementById('partnum').innerHTML="共"+(Number(part))+"页";
                    document.getElementById('totalnum').innerHTML="共"+total+"条记录";
                //    for(var q=0;q<data.length;q++){
//
               //         data[q]=jQuery.makeArray(data[q]).push({"filename":data[q].picname.substring(25,37)});

              //      }
                    var datatLoad=[];
                    //var dataJson=JSON.stringify(data);
                   // datatLoad={"total":data.length,"row": data};
                   // datatemp
                    var tempcolumms;
                    tempcolumms = JSON.stringify(data[0]).split(",");

                    for (var m = 0; m < tempcolumms.length; m++) {
                        colums[m] = tempcolumms[m].split(":")[0].replace("\"", "").replace("\"", "").replace("{", "").replace("}", "");

                    }
                    var columnsJsonArray = [];
                    for (var i = 0; i < colums.length; i++) {
                        columnsJson.push({"field": colums[i], "title": colums[i]});

                    }
                    // eval("["+JSON.stringify(columnsJson)+"]");

                    $("#datagird").datagrid({

                        columns: eval("[" + JSON.stringify(columnsJson) + "]"),
                        data: data,
                        pagination:false,
                        singleSelect:true,
                        //pageSize:100,
                        onClickRow: dataGirdClickListener
                    });
                    $("#datagird").datagrid('hideColumn', 'picname');
                    $("#datagird").datagrid({}).datagrid("keyCtr");
                   // $("#datagird").datagrid('hideColumn', 'taskid');
                    /*var p = $('#datagird').datagrid('getPager');
                    $(p).pagination({
                        pageSize: 100,//每页显示的记录条数，默认为10 
                       // pageList: [5,10,15],//可以设置每页记录条数的列表 
                        beforePageText: '第',//页数文本框前显示的汉字 
                        afterPageText: '页    共 {pages} 页',
                        displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'
                        /!*onBeforeRefresh:function(){
                                     $(this).pagination('loading');
                                     alert('before refresh');
                                     $(this).pagination('loaded');
                                 }*!/
                    });*/

                },
                error: function onErr() {
                    $.messager.progress('close');
                    alert("请求失败");
                }
            });

        } else {

            //弹出
        }
    }
    function deleteEmptyProperty(object) {
        for (var i in object) {
            var value = object[i];
            // sodino.com
            // console.log('typeof object[' + i + ']', (typeof value));
            if (typeof value === 'object') {
                if (Array.isArray(value)) {
                    if (value.length == 0) {
                        delete object[i];
                        // console.log('delete Array', i);
                        continue;
                    }
                }
                deleteEmptyProperty(value);
                if (isEmpty(value)) {
                    // console.log('isEmpty true', i, value);
                    delete object[i];
                    //  console.log('delete a empty object');
                }
            } else {
                if (value === '' || value === null || value === undefined) {
                    delete object[i];
                    // console.log('delete ', i);
                } else {
                    //  console.log('check ', i, value);
                }
            }
        }
    }
    function isEmpty(object) {
        for (var name in object) {
            return false;
        }
        return true;
    }
    function lodeNextPage() {
        if(Number(existNextPage)) {
            partIndex++;
            var sql = $('#queryCommandInput').val();
            var sqlJson = [];
            sqlJson.push({"tag": "sql", "sql": sql, "queryIndex": partIndex});
            // sqlJson.push({"sql":sql});
            var sqlSend = JSON.stringify(sqlJson);
            $.ajax({
                type: "post",
                contentType: "application/json",
                url: "/picSqlQuery",
                data: sqlSend,
                dataType: "json",
                success: function onSucc(data) {
                    deleteEmptyProperty(data);
                    var partMessage=data.pop();
                    $("#datagird").datagrid({data: data});
                    part= partMessage.part;
                    existNextPage= partMessage.existNextPart;
                    total=partMessage.size;

                    document.getElementById('pagenum').innerHTML="第"+(Number(partIndex)+1)+"页";
                    document.getElementById('partnum').innerHTML="共"+(Number(part))+"页";

                    document.getElementById('totalnum').innerHTML="共"+total+"条记录";
                }
            });
        }
        else
            alert("这是最后一页啦~");
    }
    function lodePrePage() {
        if(Number(partIndex)>0) {
            partIndex--;
            var sql = $('#queryCommandInput').val();
            var sqlJson = [];
            sqlJson.push({"tag": "sql", "sql": sql, "queryIndex": partIndex});
            // sqlJson.push({"sql":sql});
            var sqlSend = JSON.stringify(sqlJson);
            $.ajax({
                type: "post",
                contentType: "application/json",
                url: "/picSqlQuery",
                data: sqlSend,
                dataType: "json",
                success: function onSucc(data) {
                    deleteEmptyProperty(data);
                    var partMessage=data.pop();
                    $("#datagird").datagrid({data: data});
                    part= partMessage.part;
                    existNextPage= partMessage.existNextPart;
                    total=partMessage.size;

                    document.getElementById('pagenum').innerHTML="第"+(Number(partIndex)+1)+"页";
                    document.getElementById('partnum').innerHTML="共"+(Number(part))+"页";
                    document.getElementById('totalnum').innerHTML="共"+total+"条记录";

                }
            });
        }

        else
        {
            alert("这是第一页啦~");

        }
    }
    //$("#testff").val("ftp://172.16.99.153/fast/1/picture/FP20161121/FP20161121_010902F/FP20161121_010902F_DM312.00_967.74ms_Cand.pfd.png");


    function matchSelect() {
        if($('#datagird').datagrid('getSelected')==null){
            alert("Select a row,please!")
        }else{
            $('#newevent').window('open');
            var list;
            var row=$('#datagird').datagrid('getSelected');
            /*var ra2000Rank,dec2000Rank,dmRank,pRank,hRank;
            ra2000Rank=$("#ra2000Rank").val();
            dec2000Rank=$("#dec2000Rank").val();
            dmRank=$("#dmRank").val();
            pRank=$("#pRank").val();
            hRank=$("#hRank").val();
            var row=$('#datagird').datagrid('getSelected');
            //row=JSON.stringify(row);
            //alert(row+"**");*/
            var ptopo=row.ptopo;
            var dm=row.dm;
            var fileId=row.fileId;
            var obj={"fileId":fileId,"dm":dm,"ptopo":ptopo};
            $.ajax({
                type: "post",
                contentType: "application/json",
                url: "/matchQuery",
                data: JSON.stringify(obj),
                dataType: "json",
                success: function onSucc(data) {
                    list=data;

                },
                error:function () {
                    alert("error!");

                }});
            alert(list);
            return list;

        }




    }

    function matchPuslar(){
        var list=matchSelect();
        var obj=list[0];
        obj.ra2000Rank=$("#ra2000Rank").val();
        obj.dec2000Rank=$("#dec2000Rank").val();
        obj.dmRank=$("#dmRank").val();
        obj.pRank=$("#pRank").val();
        obj.hRank=$("#hRank").val();
        $.ajax({
            type: "post",
            contentType: "application/json",
            url: "/matchKnownQuery",
            data: JSON.stringify(obj),
            dataType: "json",
            success: function onSucc(data) {


            },
            error:function () {
                alert("error!");

            }});



    }


    function addEvent() {
        $('#newevent').window('open');
    }
    function requireEvent() {
        var rastr,decstr;
        rastr=$("#rastr").val();
        decstr=$("#decstr").val();
        alert(dastr);
        $('#newevent').window('close');

    }
</script>

</body>
</html>
